/**
 * Created by leo on 2/2.
 */
angular.module('panels')
    .directive('panelPortalServiceDesk', function (tabService, loadConf) {
        return {
            scope: {},
            link: function (scope) {
                loadConf('panel-portal-service-desk.yml').then(function (setting) {
                    scope.setting = setting;
                    scope.tab = {name: setting.title, url: setting.url};
                });
                scope.tabService = tabService;
            },
            templateUrl: 'app/panel/portal/service-desk.html'
        };
    });